import http from '@/common/http/http'


//获取openid
export function getOpenidApi(data){
	return http({
		url:'/sys/getOpenid',
		data,
		method: 'GET',
	})
}

export function getPersonApi(data){
	return http({
		url:'/sys/getPerson',
		data,
		isOpenId: true,
		isOaopenId: true,
	})
}

export function miniLoginApi(data){
	return http({
		url:'/sys/miniLogin',
		data,
		isOpenId: true,
	})
}

export function oaLoginApi(data){
	return http({
		url:'/sys/oaLogin',
		data,
	})
}


export function sendsmsApi(data){
	return http({
		url:'/sys/sendsms',
		data,
		isOaopenId : true,
		isOpenId: true,
	})
}

export function getoaOpenInfoApi(data){
	return http({
		url:'/sys/getoaOpenInfo',
		data,
		// isToken : true,
		// isOpenId: true,
	})
}

//统计用户金额和最新消费时间
export function countAmtApi(data){
	return http({
		url:`/portal/newCountAmt`,
		data,
		isToken : true,
	})
}

export function cardOperationlistApi(data){
	return http({
		url:`/portal/cardOperationlist`,
		data,
		isToken : true,
	})
}

export function cardtransListApi(data){
	return http({
		url:`/portal/newCardtransList`,
		data,
		isToken : true,
	})
}

export function reqRechargeApi(data){
	return http({
		url:`/portal/reqRecharge`,
		data,
		isToken : true,
		isOpenId : true
	})
}

export function sysAppletPermissionQueryByUserNameApi(data){
	return http({
		url:`/sys/sysAppletPermission/queryByUserName`,
		data,
		isToken : true,
		method: 'GET'
	})
}

export function unbindApi(data){
	return http({
		url:`/sys/unbind`,
		data,
		isToken : true,
		// method: 'GET'
	})
}

export function oaunbindApi(data){
	return http({
		url:`/sys/oaunbind`,
		data,
		isToken : true,
		isOaopenId : true
	})
}

export function annountCementListApi(data){
	return http({
		url:`/sys/annountCement/list`,
		data,
		isToken : true,
		method: 'GET'
	})
}

export function getCodeIndexApi(data){
	return http({
		url:`/sys/temp/getcodeindex`,
		data,
		isToken : true,
		method: 'GET'
	})
}

export function studentMatchApi(data){
	return http({
		url:`/baseinfo/student/match`,
		data,
		// isToken : true,
		method: 'GET'
	})
}

export function studentRegisterApi(data){
	return http({
		url:`/baseinfo/student/register`,
		data,
		// isToken : true,
	})
}

export function newstudentsendsmsApi(data){
	return http({
		url:`/sys/newstudentsendsms`,
		data,
		// isToken : true,
	})
}

export function esidcardAuthApi(data){
	return http({
		url:`/esidcard/auth/miniApplogin`,
		data,
		isToken : true,
		isOpenId : true,
		method: 'GET'
	})
}

export function editPhoneApi(data){
	return http({
		url:`/baseinfo/ssPerson/editPhone`,
		data,
		isToken : true,
	})
}

